package com.cloud.user.service;

import com.cloud.user.entity.User;
import org.springframework.stereotype.Service;

/**
 * Created by Administrator on 2018/1/7.
 */

public interface UserService {

    User checkUserExits(String userName);
    String getUserRole(User user);
    void pwdInit(User user, String newPwd);
    /**
     * 判断这个角色是不是还有用户使用
     *@Author JueYue
     *@date   2013-11-12
     *@param id
     *@return
     */
    int getUsersOfThisRole(String id);

    /**
     * 物理删除用户
     * @param user
     */
    String trueDel(User user);
}
